import wsgiref.handlers
import appcons

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class Search(webapp.RequestHandler):
  def get(self):
    values = {
              "appname": appcons.AppName(),
              "multiline": "<br>",
              }

    self.response.out.write(template.render("./pages/search.html", values))

class About(webapp.RequestHandler):
  def get(self):
    values = {
              "appname": appcons.AppName(),
              }

    self.response.out.write(template.render("./pages/about.html", values))

def main():
  application = webapp.WSGIApplication([("/", Search),
                                        ("/about", About),
                                        ],
                                       debug=True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
  main()
